package com.qing.library_manager.dao.manager;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qing.library_manager.domain.dto.ManagerLoginDTO;
import com.qing.library_manager.domain.dto.ManagerResgisterDTO;
import com.qing.library_manager.domain.entity.Manager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

/**
 * <p>TODO</p>
 *
 * @author Yjx
 * @version 1.0.0
 * @since 2021/11/25
 **/

@Mapper
public interface managerMapper extends BaseMapper<Manager> {

    /**
     * 管理员登录
     * @param managerLoginDTO
     * @return
     */
    Manager mangerLogin(ManagerLoginDTO managerLoginDTO);

    /**
     * 查询管理员信息
     * @param managerUsername
     * @return
     */
    Manager mangerNameSelect(@Param("managerUsername") String managerUsername);

    /**
     * 添加管理员
     * @return
     */
    int managerAdd(ManagerResgisterDTO managerResgisterDTO);

}
